package my.test.responsibilitychain.best;

import my.test.responsibilitychain.IWomen;

/**
 * @Author 许玉康
 * @Date 2019/7/16 9:13
 */
public class Son extends Handler {

    //儿子只处理母亲的请求
    public Son() {
        super(Handler.SON_LEVER_REQUEST);
    }

    @Override
    protected void response(IWomen women) {
        System.out.println("----母亲向儿子请示------");
        System.out.println(women.getRequest());
        System.out.println("儿子答复是:同意\n");
    }
}
